//
//  ChooseDetailModel.m
//  代号：47
//
//  Created by lanou3g on 15/7/3.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "ChooseDetailModel.h"

@implementation ChooseDetailModel


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"shareinfo"]) {
        [self setValue:value[@"url"] forKey:@"url"];
        [self setValue:value[@"title"] forKey:@"title"];
    }
    if ([key isEqualToString:@"userinfo"]) {
        [self setValue:value[@"desc"] forKey:@"desc"];
        [self setValue:value[@"icon"] forKey:@"icon"];
        [self setValue:value[@"uname"] forKey:@"uname"];
        [self setValue:value[@"isfollow"] forKey:@"isfollow"];
    }
    
}

@end
